<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="../../res/jquery.min.js"></script>
    <script src="../../src/bs.base.js"></script>
    <script src="../../src/bs.utils.js"></script>
    <script src="../../src/bs.url.js"></script>
    <script src="../../src/bs.using.js"></script>
</head>
<body>
    <div><span>您访问的路径为：</span><span id="segment"></span></div>
    <div><span>您访问的路径锚点参数为：</span><span id="fsegment"></span></div>
    <div><span>您访问的路径参数：</span><span id="args"></span></div>
    <div><span>您访问的路径名称：</span><span id="path"></span></div>
    <div><span>您访问的路径被修改的名称：</span><span id="path1"></span></div>
     <script>
         $(document).ready(function () {
             var _url = bs.url();
            var segments = _url.segment();
            for(var seg in segments){
                $('#segment').append(segments[seg] + "/");
            }
              //锚点参数
             segments = _url.fsegment();
             console.log(segments);
             for (var seg in segments) {
                 $('#fsegment').append(segments[seg] + "/");
             };
             //参数
            $('#args').append('a参数：' + _url.param('a') + "\t");
            $('#args').append('aa信息值：' + _url.fparam('aa') + "\t");
             $('#args').append('bb信息值：' + _url.fparam('bb'));
             console.log(_url.data.param.query);
             console.log('修改后：');

             _url.param('aa', 'xx11');
             _url.param('b', 'xx22');
             console.log(_url.data.param.query);
           $('#path1').append('' + _url.toString(true));
         });
     </script>
</body>
</html>